package com.bckj.freshnow.payment.repo;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bckj.freshnow.payment.entity.PayMerchantConfig;
import com.bckj.freshnow.payment.mapper.PayMerchantConfigMapper;
import org.springframework.stereotype.Repository;

@Repository
public class PayMerchantConfigRepository extends ServiceImpl<PayMerchantConfigMapper, PayMerchantConfig> {
    public PayMerchantConfig getByOutMerchantId(String outMerchantId) {
        return lambdaQuery().eq(PayMerchantConfig::getOutMerchantId, outMerchantId).one();
    }
}
